﻿function upload_apk_v2 (obj) {
	// 要上传的应用的类型：add, download, edit, private, update, import
	var type = obj.attr('_type') ? obj.attr('_type') : 'add';
	var package_id = obj.attr('_package_id') ? obj.attr('_type') : '';
	
	var upload_url = _URL_PATH + '/app.php?act=upload_apk&type=' + type + '&package_id=' + package_id;
	
}

/**
 * 显示加载提示框
 * 
 * @param bool show = fasle。显示（true）或关闭（false）
 * @param stirng message = ''。提示消息
 */
function show_loading (show, message) {
	if (!show) {
		$('#loading_box_123').dialog('close');
	} else {
		$('#loading_box_123').dialog('close');
		$('#loading_box_123').remove();
		if (!message) {
			message = '';
		}
		$('body').append('<div id="loading_box_123" style="display: none; text-align: center">' + '<div style="width: 350px; margin-bottom: 20px"><img src="/img/loading3.gif" width="64" height="64" /></div>' + (message ? '<div style="width: 350px">' + message + '</div>' : '') + '</div>');
		$('#loading_box_123').dialog({
			title: '',
			width: 350,
			modal: true,
			draggable: false,
			resizable: false,
			closeOnEscape: false,
			zIndex: 999999,
			buttons: {}
		});
		$('#loading_box_123').parent().find('.ui-dialog-titlebar').hide();
		$('#loading_box_123').css('padding', '50px 0');
	}
}